#include <stdio.h>
#include <string.h>

#define MAX 255

int main() {
    char string[MAX], reversed[MAX];
    int i = 0, len;
    scanf("%s", string);
    len = strlen(string);

    for (i = 0; i < len; i++) {
        reversed[len - 1 - i] = string[i];
    }
    reversed[i] = '\0';
    printf("%s\n", reversed);
    return 0;
}
